<template>
  <div>
    <t-navbar title="修改信息" :fixed="false" left-arrow @left-click="back" />

    <div>
      <t-input style="margin-top: 10px"  label="昵称" v-model="user.nickName"></t-input>
      <t-input style="margin-top: 10px"  label="手机号" v-model="user.phone"></t-input>
      <t-button style="margin-top: 20px"  theme="light" @click="updateInfo" block>确认修改</t-button>
    </div>
  </div>
</template>

<script setup>
import {onMounted, ref} from 'vue'
import {Toast} from "tdesign-mobile-vue";
import {useRouter} from "vue-router";
import {post} from "../util/Request.js";


const router=useRouter()
const user=ref({
  nickName:"",
  phone:""
})
const back=()=>{
  history.back()
}
</script>

<style scoped>

</style>